package com.dayuanit.dy14.atm.demo2.dy14atmcommon.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class DepositVO {
    private Integer cardId;

    @NotBlank(message = "密码不能为空")
    @Length(min = 1, max = 3, message = "密码长度最小长度1，最大长度3")
    private String password;

    @NotBlank(message = "金额不能为空")
    private String amount;
}
